package PPJ;
import java.util.Scanner;

  class Account {

	private int number;
	private String name;
	private double balance;
	private double proft;
	
	Account(int nr, String imie, double stanSrodkow , double zyskStrata)	{
		  number= nr;
		  name= imie;
		  balance = stanSrodkow;
		  proft = zyskStrata;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public double getProft() {
		return proft;
	}

	public void setProft(double proft) {
		this.proft = proft;
	}
	
	
	
}


public class Zad03 {


	public static void main(String[] args) {
		
		Account mt4 = new Account(1111,"Mateusz",13453,124);
		
		System.out.println("Podaj numer rachunku:");
		Scanner input = new Scanner(System.in);
        //input.nextInt();
        if (input.nextInt()==mt4.getNumber())
        	System.out.println("Balabce rachunku:" + mt4.getBalance());
        else 
        	System.out.println("podany numer rachunku nie istnieje");
	}

}
